#include <assert.h>
#include "employeeao_factory.h"
#include "employeeao_stub4web.h"
#include "employeeao_stub4app.h"
//#include "employeeao.h"

using namespace erp::employee::ao;

bool CEmployeeAoFactory::s_EmployeeAoInit = false;

IEmployeeAo* CEmployeeAoFactory::GetObject(enum ObjType_T obj_type)
{
    switch(obj_type)
    {
    case STUB4APP:
        return (new CEmployeeAoStub4App);
/*适应container3
    case POCO:
    {
        if(!s_EmployeeAoInit)
        {
            int iRetCode = CEmployeeAo::Initialize();
            assert(iRetCode == 0);
            s_EmployeeAoInit = true;
        }   	
        return (new CEmployeeAo);
	}*/
    default:
        assert(0);
    };
    return NULL;
}

IEmployeeAoAsyc* CEmployeeAoFactory::GetAsycObject()
{
	return (new CEmployeeAoStub4App);
}
